


#define MOSI	PB7
#define MISO	PB6
#define SPI_SCK	PB5
#define LCD1_CS	PB4
#define LCD2_CS	PA8



void SPI_init(void);
uint8_t SPI_Read(uint8_t ch,uint8_t reg);
uint8_t SPI_RW_Reg(uint8_t ch,uint8_t reg, uint8_t value);
uint8_t SPI_Read_Buf(uint8_t ch,uint8_t reg, uint8_t *pBuf, uint8_t uchars);
uint8_t SPI_Write_Buf(uint8_t ch,uint8_t reg, uint8_t *pBuf, uint8_t uchars);
void oled_init_setting(uint8_t ch);
void oled_init(void);
void oled_start(void);




